﻿using System.Linq;

namespace  Msp.Scaffolding.Entities
{
    public class ProjectInfo
    {
        public ProjectInfo(string baseDirectory, string fullName,string projectName)
        {
            BaseDirectory = baseDirectory;
            ModuleName = fullName;
            ProjectName = projectName;

        }

        /// <summary>
        /// cmsAdmin
        /// </summary>
        public string ProjectName { get; set; }
        public string BaseDirectory { get; set; }
        public string ModuleName { get; set; }


        /// <summary>
        /// 小写模块名 (如wms)
        /// </summary>
        public string ModuleNameLower
        {
            get
            {
                return ModuleName.ToLower();
            }
        }
        public string Name => ModuleName.Split('.').Last();
    }
}
